package com.chen.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenchao

 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("album")
@ApiModel(value = "相册",description = "")
public class Album implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String albums;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")//日期格式化
    private Date time;
    private String intro;
    private String category;
    private int op;
    //    该元素不存在
    @TableField(exist = false)
    private int count;

}
